home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / dfÜ / bbs / tronbbs / tron / scripts / viewarchive < prev    next >
Encoding:
AmigaDOS Script File  |  1996-07-16  |  716 b   |  45 lines

  1. .KEY  file,archive,desc
  2. ;.DEF file=nix
  3. .BRA  <
  4. .KET  >
  5.  
  6.  
  7. ;;;  This script will be executed after the 'View' command is given
  8. ;;;  in the BBS , and tries to examine an archive.
  9.  
  10. ;;;  archive = "RAW" | "ZIP | "LHA" | "LZX" | "ZOO" | "ARJ" | "ARC" | "DMS"
  11.  
  12.  
  13. IF <archive> EQ raw
  14.    echo "Not an archive or unknown archive type."  ><desc>
  15. EndIf
  16.  
  17. IF <archive> EQ zip
  18.    unzip -v <file>  ><desc>
  19. EndIf
  20.  
  21. IF <archive> EQ lha
  22.    lha l <file> ><desc>
  23. EndIf
  24.  
  25. IF <archive> EQ lzx
  26.    lzx l <file> ><desc>
  27. EndIf
  28.  
  29. IF <archive> EQ zoo
  30.    zoo -list <file> ><desc>
  31. EndIf
  32.  
  33. IF <archive> EQ arj
  34.    unarj l <file> ><desc>
  35. EndIf
  36.  
  37. IF <archive> EQ arc
  38.    arc l <file> ><desc>
  39. EndIf
  40.  
  41. IF <archive> EQ dms
  42.    dms View <file> FULL ><desc>
  43. EndIf
  44.  
  45.